//
//  HZC_BaceView.h
//  Co8
//
//  Created by Hanzengchao on 2017/11/1.
//

#import <UIKit/UIKit.h>
#import "UIView+UIView_Extend.h"
IB_DESIGNABLE
@interface YYJ_BaseView : UIView

/** 给某个 view 添加边框 */
+(void)kChangeBoard:(BOOL)kWarning withView:(UIView*) kView andColor:(UIColor *)color;

/**
 边框变红色的方法
 */
-(void)kChangeBoard:(BOOL)kWarning withView:(UIView*) kView;
/**
 textfiled提示语Placeholder变红色的方法
 */
-(void)kChangeTextfilePlaceholderColor:(UITextField*) kTextFile withWarning:(BOOL) kWarning;
/**
 label文字变红色的方法
 */
-(void)kChangeLabel:(UILabel*) kLabel withWaring:(BOOL) kWarning;

/** 更新高度用的 */
@property (nonatomic, copy)void (^kReloadViewBlock)(void);
/** 设置高度.
 *  spacing  为额外的高度
 */
-(void)setSelfFrame:(CGFloat)spacing;

/** 页面退出通知 */
-(void)viewWillDisAp;
/** 直接圆形 */
@property (nonatomic)IBInspectable BOOL isRound;
/** 圆角角度 */
@property (nonatomic)IBInspectable CGFloat cornerRadius;
/** 圆角边框宽度 */
@property (nonatomic)IBInspectable CGFloat borderWidth;
/** 圆角颜色 */
@property (nonatomic, copy)IBInspectable UIColor *borderColor;
/** 圆角什么部分 */
@property (nonatomic)IBInspectable UIRectCorner corners;

///** 阴影颜色 */
//@property (nonatomic)IBInspectable UIColor *shadowColor;
///** 阴影透明度 */
//@property (nonatomic)IBInspectable CGFloat shadowOpacity;
///** 阴影大小 */
//@property (nonatomic)IBInspectable CGFloat shadowRadius;
///** 阴影偏移 阴影偏移量 默认为(0,3) */
//@property (nonatomic)IBInspectable CGSize shadowOffset;


@end
